parser grammar PLSQLParser;

options {
    output=AST;
    tokenVocab=PLSQLLexer;
}

import PLSQLKeys, PLSQLCommons, PLSQL_DMLParser;

tokens {
    DML_STATEMENT;
}

@header {
package com.polytech.diploma.OracleSQL;
}

@members {

  public static class DmlStatement extends CommonTree
	{
		DmlStatement(int tokenType)
		{
			token = (Token) new CommonToken(tokenType, "");
		}
	}
	
}
// $<DML SQL PL/SQL Statements
dml_statement
    :     statement SEMICOLON
        -> ^(DML_STATEMENT<DmlStatement>  statement);
        
statement
    :    merge_statement 
    |    select_statement
    |     update_statement
    |     delete_statement
    |    insert_statement
    ;
    

// $>
